<?php
namespace app\admin\validate;

class ApiSpotValidate extends CommonValidate
{
    /**
     * 验证规则
     * @var string[]
     */
    protected $rule = [
       'spot_title'     =>  'require', // 景区
    ];

    /**
     * 提示消息
     * @var string[]
     */
    protected $message = [
        'spot_title.require'     =>  '名称不能为空',
    ];

    /**
     * 验证对象
     * @var array[]
     */
    protected $scene = [
		'fields' => ['*'],
		'add'    => ['spot_title'],
		'edit'    => ['spot_title'],
    ];

}